package cn.stylefeng.guns.modular.recy.entity;
/*
 */

import com.baomidou.mybatisplus.extension.activerecord.*;
import java.io.*;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("recy_product")
public class Product extends Model<Product> implements Serializable
{
    //alias
    public static final String TABLE_ALIAS = "商品";
    public static final String ALIAS_ID = "编号";
    public static final String ALIAS_PRODUCT_NAME = "商品名称";
    public static final String ALIAS_PRODUCT_PRICE = "商品市场价";
    public static final String ALIAS_JIFEN = "兑换积分";
    public static final String ALIAS_PHOTOS = "商品图片";
    public static final String ALIAS_DETAIL = "商品详情";
    public static final String ALIAS_STATUS = "商品状态";
    public static final String ALIAS_CREATE_TIME = "商品上架时间";

    //date formats
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String FORMAT_CREATE_TIME = DATE_FORMAT;



//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//columns START
    @TableId(value = "id", type = IdType.ID_WORKER)
    private java.lang.Long id;

    @TableField("product_name")
    private java.lang.String productName;

    @TableField("product_price")
    private java.lang.Double productPrice;

    @TableField("jifen")
    private java.lang.Double jifen;

    @TableField("photos")
    private java.lang.String photos;

    @TableField("detail")
    private java.lang.String detail;

    @TableField("status")
    private java.lang.Long status;

    @TableField("create_time")
    private java.util.Date createTime;

//columns END







    

}
